package com.example.reagent_management;

import com.example.lib_base.event.ShareViewModel;
import com.example.reagent_management.room.entity.HistoryInfo;
import com.example.reagent_management.room.entity.InStoreChoose;
import com.kunminx.architecture.ui.callback.ProtectedUnPeekLiveData;
import com.kunminx.architecture.ui.callback.UnPeekLiveData;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;

//如果组件化的话，一个组件事件尽量扩展ShareViewModel
//后面的话ShareViewModel应该给出指定的内容
public class AppEvent extends ShareViewModel {

    private final UnPeekLiveData<InStoreChoose> history = new UnPeekLiveData<>();

    public ProtectedUnPeekLiveData<InStoreChoose> getInStoreChoose(){
        return history;
    }

    public void setInStoreChoose(InStoreChoose inStoreChoose){
        this.history.setValue(inStoreChoose);
    }

}
